/**
 * Created by Administrator on 2017/7/24.
 */
import { combineReducers } from 'redux'
import { SEARCH_RESULT, SEARCH_HOT } from '../actions/search'

function hots(state=[], action) {
  switch (action.type) {
    case SEARCH_HOT:
      return action.obj
    default:
      return state
  }
}

function result(state=[], action) {
  switch (action.type) {
    case SEARCH_RESULT:
      return action.obj
    default:
      return state
  }
}

const Reducers = combineReducers({
  hots, result
})

export default Reducers



















